﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Com.CMS263.PO;

namespace Com.CMS263.DAO
{
    public class SiteInfoDAO : BaseService
    {
        /// <summary>
        /// 查询站点信息
        /// </summary>
        /// <returns></returns>
        public SiteInfo GetSiteInfo()
        {
            string hql = "from SiteInfo  order by Id desc";
            try
            {
                return FindList<SiteInfo>(hql, null, 0, 1)[0];
            }
            catch (Exception)
            {
                return null;

            }
        }
    }
}
